|
|
|
|
|
13
Creating Databases with SQL |
|
|
|
| |
 |
|
|
|
|
Using the SQL-VB5 Interpreter |
|
|
|
| |
 |
|
|
|
|
Loading and Running the SQL-VB5 Interpreter |
|
|
|
| |
 |
|
|
|
|
Creating and Editing SQL-VB5 Scripts |
|
|
|
| |
 |
|
|
|
|
SQL-VB5 Command Syntax |
|
|
|
| |
 |
|
|
|
|
Why Use SQL to Create and Manage Data Tables? |
|
|
|
| |
 |
|
|
|
|
Table Management SQL Keywords |
|
|
|
| |
 |
|
|
|
|
Designing New Tables with CREATE TABLE |
|
|
|
| |
 |
|
|
|
|
Modifying Tables with ALTER TABLE_ADD COLUMN and DROP COLUMN |
|
|
|
| |
 |
|
|
|
|
Deleting Tables with DROP TABLE |
|
|
|
| |
 |
|
|
|
|
Relationship SQL Keywords |
|
|
|
| |
 |
|
|
|
|
Managing Indexes with CREATE INDEX and DROP INDEX |
|
|
|
| |
 |
|
|
|
|
Using the ASC and DESC Keywords in the INDEX Statement |
|
|
|
| |
 |
|
|
|
|
Using Indexes to Speed Data Access |
|
|
|
| |
 |
|
|
|
|
Using Indexes to Add Database Integrity |
|
|
|
| |
 |
|
|
|
|
Managing Relationships with CONSTRAINTs |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Quiz |
|
|
|
| |
 |
|
|
|
|
Exercise |
|
|
|
| |
|
|
|
|
|
14
Error Handling in Visual Basic 5 |
|
|
|
| |
 |
|
|
|
|
Error Handling in General |
|
|
|
| |
 |
|
|
|
|
Error Handling in Visual Basic |
|
|
|
| |
 |
|
|
|
|
The Built-In Visual Basic Error Objects |
|
|
|
| |
 |
|
|
|
|
Working with the Err Object |
|
|
|
| |
 |
|
|
|
|
Working with the Error Object and the Errors Collection |
|
|
|
| |
 |
|
|
|
|
Creating Your Own Error Handlers |
|
|
|
| |
 |
|
|
|
|
Creating a Simple Error Handler |
|
|
|
| |
 |
|
|
|
|
Handling Cascading Errors |
|
|
|
| |
 |
|
|
|
|
Using Resume to Exit the Error Handler |
|
|
|
| |
 |
|
|
|
|
Using Resume Next to Exit the Error Handler |
|
|
|
| |
 |
|
|
|
|
Using Resume label to Exit an Error Handler |
|
|
|
| |
 |
|
|
|
|
Using the Exit or End Method to Exit an Error Handler |
|
|
|
| |
 |
|
|
|
|
Using the Err.Raise Method to Create Your Own Error Conditions |
|
|
|
| |
 |
|
|
|
|
Types of Errors |
|
|
|
| |
 |
|
|
|
|
General File Errors |
|
|
|
| |
 |
|
|
|
|
Physical Media Errors |
|
|
|
| |
 |
|
|
|
|
Program Code Errors |
|
|
|
| |
 |
|
|
|
|
Database Errors with the Data Control |
|
|
|
| |
 |
|
|
|
|
Database Errors with Microsoft Data Access Objects |
|
|
|
| |
 |
|
|
|
|
Creating Your Error Handler OLE Server |
|
|
|
| |
 |
|
|
|
|
Building the errHandler Class |
|
|
|
| |
 |
|
|
|
|
Coding the frmErrDialog Form |
|
|
|
| |
 |
|
|
|
|
Testing the ErrHandler Object Library |
|
|
|
| |